<?php
/* @var $this ParticipantController */
/* @var $model Participant */

$this->breadcrumbs=array(
	'Participantes'=>array('index'),
	$model->name,
);

/*
$this->menu=array(
	array('label'=>'List Participant', 'url'=>array('index')),
	array('label'=>'Create Participant', 'url'=>array('create')),
	array('label'=>'Update Participant', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Participant', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Participant', 'url'=>array('admin')),
);*/
?>

<?php /* $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'name',
		'image',
		'description',
		'position',
		'age',
		'formation',
		'nationality',
		'branche',
		'sector',
		'location',
		'type',
	),
)); */?>



        <div class="row">
            <?php echo CHtml::image(Yii::app()->request->baseUrl.'/photos/'.$model->image,"image",array("width"=>250)); ?>  
            
            <?php if(!Yii::app()->user->isGuest && $this->getAction()->getId() != 'profile'): ?>     
                <?php echo CHtml::link('[Editar perfil]',array('participant/update', 'id'=>$model->id)); ?>
            <?php endif; ?>
            
            
        </div>

        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('name')); ?></h3></legend>
		<?php echo $model->name; ?>
        </fieldset>
	
        
        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('description')); ?></h3></legend>
		<?php echo $model->description; ?>
        </fieldset>
	
        
        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('position')); ?></h3></legend>
		<?php echo $model->position; ?>
        </fieldset>

        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('age')); ?></h3></legend>
		<?php echo $model->age; ?>
        </fieldset>
        
        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('formation')); ?></h3></legend>
		<?php echo $model->formation; ?>
        </fieldset>
        
         <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('nationality')); ?></h3></legend>
		<?php echo $model->nationality; ?>
        </fieldset>
        
         <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('branche')); ?></h3></legend>
		<?php echo $model->branche; ?>
        </fieldset>
        
        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('sector')); ?></h3></legend>
		<?php echo $model->sector; ?>
        </fieldset>
        
        <fieldset class="block-gray">
            <legend><h3><?php echo CHtml::encode($model->getAttributeLabel('location')); ?></h3></legend>
		<?php echo $model->location; ?>
        </fieldset>

        <fieldset class="block-gray">
            <legend><h3>Link acesso direto</h3></legend>
                <?php echo $this->createAbsoluteUrl('participant/profile',array('id'=>$model->id, 'hash'=>$model->hashCodeLink())); ?>
        </fieldset>